<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>三元表达式</title>
	</head>
	<body>
		<script>
		let a = 0
		if(a == 1){
			console.log(true)
		}else{
			console.log(false)
		}
		
		a == 1 ? console.log('真') : console.log('假')
		</script>
	</body>
</html>
